package com.common.entity.sbxBase;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: 何剑
 * @Date: 2023/3/13
 * @Note:
 **/
@TableName("user_notice")
@Data
@ApiModel
public class UserNotice implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty("服务名称")
    private String serverName;
    @ApiModelProperty("消息正文")
    private String data;
    @ApiModelProperty(value = "创建时间,不需要填写",hidden = true)
    private Date created;
    @ApiModelProperty(value = "接收方")
    private String receiver;
    @ApiModelProperty(value = "发送方")
    private String sender;
    @ApiModelProperty(value = "事件")
    private String event;
    @ApiModelProperty(value = "角色Id")
    private String roleId;
    @ApiModelProperty(value = "是否已读")
    @TableField(value = "is_read")
    private Boolean onRead;
}
